.warp {
  box-sizing: border-box;
  background: #FFF;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.header {
  background: #FFF;
}
.chat_container {
  flex: 1;
  padding: 12px;
  background: var(--theme-bg-secondary);
  position: relative;
  overflow-y: auto;
  padding-bottom: 124px;
  .input_section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
  }
  .message_list {
    height: 100%;
    scroll-behavior: smooth; // 添加平滑滚动效果
  }
}
.button_wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 10;
  padding: 12px;
  :global {
    :where(.css-dev-only-do-not-override-rowaed).ant-sender:focus-within {
      border-color: var(--adm-color-primary);
    }
    .ant-sender:focus-within {
      &::after {
        border-width: 2px;
        border-color: var(--adm-color-primary);
      }
    }
    .ant-sender-content {
      .ant-sender-actions-list {
        button {
          color: var(--adm-color-primary) !important;
          .ant-btn-icon {
            transform: rotate(-120deg);
          }
        }
      }
    }
  }
}
.input_section {
  height: 100px;
  padding: 12px;
}
.message-wrapper {
  margin-bottom: 16px;
}
.message-item {
  display: flex;
  gap: 8px;
  max-width: 100%;
}
.user-message {
  flex-direction: row-reverse;
}

.message-content {
  padding: 12px;
  border-radius: 16px;
  max-width: 70%;
  word-break: break-word;
}

.user-message .message-content {
  background-color: var(--theme-accent-info);
  color: white;
  border-top-right-radius: 4px;
}

.ai-message .message-content {
  background-color: white;
  border-top-left-radius: 4px;
}

.message-text {
  font-size: 15px;
  line-height: 1.4;
}

.message-time {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.7;
}

.user-message .message-time {
  color: rgba(255, 255, 255, 0.8);
}

.ai-message .message-time {
  color: var(--theme-text-muted);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-bg-secondary);
}

.loading-content {
  padding: 8px 16px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}